package com.ruoyi.books.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.books.mapper.BooksPerformanceFormMapper;
import com.ruoyi.books.domain.BooksPerformanceForm;
import com.ruoyi.books.service.IBooksPerformanceFormService;

/**
 * 非遗演形式汇总Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-30
 */
@Service
public class BooksPerformanceFormServiceImpl implements IBooksPerformanceFormService 
{
    @Autowired
    private BooksPerformanceFormMapper booksPerformanceFormMapper;

    /**
     * 查询非遗演形式汇总
     * 
     * @param performanceFormId 非遗演形式汇总主键
     * @return 非遗演形式汇总
     */
    @Override
    public BooksPerformanceForm selectBooksPerformanceFormByPerformanceFormId(Long performanceFormId)
    {
        return booksPerformanceFormMapper.selectBooksPerformanceFormByPerformanceFormId(performanceFormId);
    }

    /**
     * 查询非遗演形式汇总列表
     * 
     * @param booksPerformanceForm 非遗演形式汇总
     * @return 非遗演形式汇总
     */
    @Override
    public List<BooksPerformanceForm> selectBooksPerformanceFormList(BooksPerformanceForm booksPerformanceForm)
    {
        return booksPerformanceFormMapper.selectBooksPerformanceFormList(booksPerformanceForm);
    }

    /**
     * 新增非遗演形式汇总
     * 
     * @param booksPerformanceForm 非遗演形式汇总
     * @return 结果
     */
    @Override
    public int insertBooksPerformanceForm(BooksPerformanceForm booksPerformanceForm)
    {
        return booksPerformanceFormMapper.insertBooksPerformanceForm(booksPerformanceForm);
    }

    /**
     * 修改非遗演形式汇总
     * 
     * @param booksPerformanceForm 非遗演形式汇总
     * @return 结果
     */
    @Override
    public int updateBooksPerformanceForm(BooksPerformanceForm booksPerformanceForm)
    {
        return booksPerformanceFormMapper.updateBooksPerformanceForm(booksPerformanceForm);
    }

    /**
     * 批量删除非遗演形式汇总
     * 
     * @param performanceFormIds 需要删除的非遗演形式汇总主键
     * @return 结果
     */
    @Override
    public int deleteBooksPerformanceFormByPerformanceFormIds(Long[] performanceFormIds)
    {
        return booksPerformanceFormMapper.deleteBooksPerformanceFormByPerformanceFormIds(performanceFormIds);
    }

    /**
     * 删除非遗演形式汇总信息
     * 
     * @param performanceFormId 非遗演形式汇总主键
     * @return 结果
     */
    @Override
    public int deleteBooksPerformanceFormByPerformanceFormId(Long performanceFormId)
    {
        return booksPerformanceFormMapper.deleteBooksPerformanceFormByPerformanceFormId(performanceFormId);
    }
}
